/**
 * 
 */
package edu.tsinghua.mrpvc.device;

/**
 * @author Tangjian Deng
 * 
 * Last updated on 2009-11-17 by Tangjian 
 */
public interface AirConDevice extends BasicDevice {
	public int powerOn();
	public int powerOff();
	public int getCurTemperature();
	public int setTemperature(int tmp);
	public int downTemperature();
	public int upTemperature();
	public int getPowerState();
	public int getWindState();
	public int getModeState();
	public int tuneWind();
	public int tuneMode();

	public static final String EVENT_TOPIC_STATE 		= "863pvc/Device/ACCtrl/State";
	public static final String EVENT_TOPIC_ISVALID 		= "863pvc/Device/ACCtrl/Ctrl/IsValid";
	public static final String EVENT_TOPIC_POWER 		= "863pvc/Device/ACCtrl/Ctrl/Power";
	public static final String EVENT_TOPIC_TUNEMODE 	= "863pvc/Device/ACCtrl/Ctrl/TuneMode";
	public static final String EVENT_TOPIC_TUNEWIND 	= "863pvc/Device/ACCtrl/Ctrl/TuneWind";
	public static final String EVENT_TOPIC_TUNETEMP 	= "863pvc/Device/ACCtrl/Ctrl/TuneTemperature";
	public static final String EVENT_TOPIC_MODE 		= "863pvc/Device/ACCtrl/Ctrl/Mode";
	public static final String EVENT_TOPIC_WIND 		= "863pvc/Device/ACCtrl/Ctrl/Wind";
	public static final String EVENT_TOPIC_TEMP 		= "863pvc/Device/ACCtrl/Ctrl/Temperature";
	
	public static final String EVENT_PROPER_POWER_STATE = "PowerState";
	public static final String EVENT_PROPER_MODE 		= "Mode";
	public static final String EVENT_PROPER_WIND 		= "Wind";
	public static final String EVENT_PROPER_ID 			= "ID";
	public static final String EVENT_PROPER_ISVALID 	= "IsValid";
	public static final String EVENT_PROPER_TMP 		= "Temperature";
	public static final String EVENT_PROPER_CTRL 		= "Ctrl";
	
	public interface Constants{
		public static final String CTRL_TMP_UP			= "Up";
		public static final String CTRL_TMP_DOWN		= "Down";
		
		public static final String POWER_OFF 			= "0";
		public static final String POWER_ON 			= "1";
		public static final String WIND_ONE 			= "1";
		public static final String WIND_TWO 			= "2";
		public static final String WIND_THREE 			= "3";
		public static final String WIND_FOUR			= "4";
		public static final String MODE_COOL 			= "0";
		public static final String MODE_HEAT 			= "1";
		public static final String MODE_AUTO 			= "2";
		
		public static final String ISVALID_TURE 		= "true";
		public static final String ISVALID_FALSE 		= "false";
	};
}
